home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3c / projid.z / projid
Encoding:
Text File  |  2002-10-03  |  3.7 KB  |  67 lines

  1.  
  2.  
  3.  
  4. pppprrrroooojjjjiiiidddd((((3333cccc))))                                                          pppprrrroooojjjjiiiidddd((((3333cccc))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      projid, projname, fprojid, fprojname - get project ID information
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<pppprrrroooojjjj....hhhh>>>>
  13.  
  14.      pppprrrriiiidddd____tttt pppprrrroooojjjjiiiidddd((((ccccoooonnnnsssstttt cccchhhhaaaarrrr ****nnnnaaaammmmeeee))));;;;
  15.      iiiinnnntttt    pppprrrroooojjjjnnnnaaaammmmeeee((((pppprrrriiiidddd____tttt pppprrrriiiidddd,,,, cccchhhhaaaarrrr ****bbbbuuuuffff,,,, ssssiiiizzzzeeee____tttt lllleeeennnn))));;;;
  16.  
  17.      pppprrrriiiidddd____tttt ffffpppprrrroooojjjjiiiidddd((((PPPPRRRROOOOJJJJ ttttooookkkkeeeennnn,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr ****nnnnaaaammmmeeee))));;;;
  18.      iiiinnnntttt    ffffpppprrrroooojjjjnnnnaaaammmmeeee((((PPPPRRRROOOOJJJJ ttttooookkkkeeeennnn,,,, pppprrrriiiidddd____tttt pppprrrriiiidddd,,,, cccchhhhaaaarrrr ****bbbbuuuuffff,,,, ssssiiiizzzzeeee____tttt lllleeeennnn))));;;;
  19.  
  20. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  21.      The _p_r_o_j_i_d, _p_r_o_j_n_a_m_e and _g_e_t_p_r_o_j_a_l_l functions are used to obtain
  22.      information from the pppprrrroooojjjjiiiidddd file.  The _p_r_o_j_i_d function searches the
  23.      pppprrrroooojjjjiiiidddd file for the project _n_a_m_e and returns the corresponding numeric
  24.      project ID.  The _p_r_o_j_n_a_m_e function searches the pppprrrroooojjjjiiiidddd file for the
  25.      project ID _p_r_i_d and stores the corresponding ASCII name in the buffer
  26.      _b_u_f, up to a maximum of _l_e_n-1 characters.  The resulting string will
  27.      always be null-terminated.
  28.  
  29.      The _f_p_r_o_j_i_d and _f_p_r_o_j_n_a_m_e functions are variants of _p_r_o_j_i_d and _p_r_o_j_n_a_m_e
  30.      that use a PPPPRRRROOOOJJJJ token to make them more efficient for repeated use.
  31.      Otherwise their operation is identical.  For more details on creating a
  32.      PPPPRRRROOOOJJJJ token, see _o_p_e_n_p_r_o_j(3C).
  33.  
  34. FFFFIIIILLLLEEEESSSS
  35.      ////eeeettttcccc////pppprrrroooojjjjiiiidddd    System project name to project ID mappings.
  36.  
  37. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  38.      closeproj(3C), getprojall(3C), getprojuser(3C), openproj(3C), projid(4),
  39.      projects(5).
  40.  
  41. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  42.      _p_r_o_j_i_d and _f_p_r_o_j_i_d return the appropriate project ID if successful, or -1
  43.      if not.
  44.  
  45.      _p_r_o_j_n_a_m_e and _f_p_r_o_j_n_a_m_e return 1 if successful, 0 if not.
  46.  
  47. BBBBUUUUGGGGSSSS
  48.      Both functions use _f_o_p_e_n(3S) and are thus subject to its limitations.
  49.  
  50.      Project ID information should be (optionally) obtained via NIS.
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.